package com.rui.cn.provider.repository.system;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.rui.cn.entity.system.SysPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhang123
 * @since 2018-01-15
 */
@Mapper
public interface SysPermissionDao extends BaseMapper<SysPermission> {
    List<SysPermission> loadUserPermission(@Param("id") Integer id);

    List<SysPermission> getRolePermiss(@Param("id") Integer roleid);

    SysPermission getPermissionInfo(@Param("id") Integer id);
}
